package com.wms.service.impl;

import com.wms.entity.BaseShelves;
import com.wms.entity.BaseShelvesDTO;
import com.wms.entity.OrderPlatform;
import com.wms.mapper.BaseShelvesMapper;
import com.wms.service.BaseShelvesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * ---Do First---
 *
 * @author:wellseasun
 * @date:2025/4/27 下午 8:51
 * @desc:
 */
@Service
public class BaseShelvesServiceImpl implements BaseShelvesService {

    @Autowired
    private BaseShelvesMapper baseShelvesMapper ;



    @Override
    public List<BaseShelves> findAllByPage(BaseShelvesDTO baseShelvesDTO) {
        return baseShelvesMapper.findAllByPage(baseShelvesDTO);
    }

    @Override
    public Boolean delete(List<Integer> ids) {
        return baseShelvesMapper.delete(ids);
    }

    @Override
    public Boolean add(BaseShelves baseShelves) {
        return baseShelvesMapper.add(baseShelves);
    }

    @Override
    public Boolean update(BaseShelves baseShelves) {
        return baseShelvesMapper.update(baseShelves);
    }

    @Override
    public void insertBatch(List<BaseShelves> cachedDataList) {
        baseShelvesMapper.insertBatch(cachedDataList);
    }
}
